package com.lynx.core.impl;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.lynx.core.View;
import com.lynx.core.XmlPushMap;
import com.lynx.core.servlet.ViewRouter;
/**
 * 
 * @author lxp
 *
 */
public class DispatcherView implements View {
	private String url;

	public DispatcherView(String url) {
		this.url = url;
	}

	public String getUrl() {
		return this.url;
	}

	public void render(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException, Exception {
		request.getRequestDispatcher(url).forward(request, response);
	}

}
